package com.example.demo.dto.request;

import com.example.demo.dto.Sex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * @author 陈浩
 * @date 2021/1/8 10:13
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户信息查询对象", description = "用户查询信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserQueryReq extends Sex {

    @ApiModelProperty("用户姓名")
    @NotBlank(message = "姓名不能为空！")
    public String name;

    @ApiModelProperty("用户年龄")
    public Integer age;

}
